package drds.configuration.db.xml_mapping.dynamic_tag.tag;

import drds.configuration.db.xml_mapping.dynamic_tag.tag_context.TagContext;

import java.util.List;


public class CompositeTag implements Tag {
    private final List<Tag> tagList;

    public CompositeTag(List<Tag> tagList) {
        this.tagList = tagList;
    }

    @Override
    public boolean apply(TagContext tagContext) {
        tagList.forEach(tag -> tag.apply(tagContext));
        return true;
    }
}
